package org.scirp.ijmis.service.personpaper.impl;

import java.util.List;

import org.scirp.ijmis.dao.personpaper.IOAPersonDAO;
import org.scirp.ijmis.po.personpaper.OAPerson;
import org.scirp.ijmis.service.personpaper.IExpertPersonService;

public class ExpertPersonServiceImpl implements IExpertPersonService {
	private IOAPersonDAO oaPersonDAO;
	@Override
	public boolean deleteOAPerson(OAPerson OAPerson) {
		return oaPersonDAO.deleteOAPerson(OAPerson);
	}

	@Override
	public Boolean deleteOAPerson(Long OAPersonId) {
		return oaPersonDAO.deleteOAPerson(OAPersonId);
	}

	@Override
	public Long saveOAPerson(OAPerson OAPerson) {
		return oaPersonDAO.saveOAPerson(OAPerson);
	}

	@Override
	public List<OAPerson> selectAll() {
		return oaPersonDAO.selectAll();
	}

	@Override
	public OAPerson selectById(long OAPersonID) {
		return oaPersonDAO.selectById(OAPersonID);
	}

	@Override
	public List<OAPerson> selectExpertByPaperId(long paperId,long count,List<String> keywords) {
		return oaPersonDAO.selectExpertByPaperId(paperId, count,keywords);
	}

	
	@Override
	public boolean updateOAPerson(OAPerson OAPerson) {
		return oaPersonDAO.updateOAPerson(OAPerson);
	}

	public IOAPersonDAO getOaPersonDAO() {
		return oaPersonDAO;
	}

	public void setOaPersonDAO(IOAPersonDAO oaPersonDAO) {
		this.oaPersonDAO = oaPersonDAO;
	}



}
